(function() {
	module('Sequence1211 Tests');

	test('Setup OK', function() {
		ok(true);
	});

	test('Test sequence check', function() {
		var controller = new Sequence1211();
		ok(controller.check('1211', '111221'));
	});

	test('Test next sequence of 1', function() {
		var controller = new Sequence1211();
		equal(controller.nextSequence("1"), "11");
	});

	test('Test next sequence of 11', function() {
		var controller = new Sequence1211();
		equal(controller.nextSequence("11"), "21");
	});

	test('Test wrong solution', function() {
		var controller = new Sequence1211();
		ok(!controller.check('1121', '123'));
	});
}());